<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DSP</title>
<%@include file="../../common/link.jsp"%>
<script>
	var config = {
		url : 'nationals'
	}

	var colModel = [
			{   title : '民族',
				field : 'nName',
				width : 60,
				align : 'left',
				formatter : function(value, rowData, index) {
					return "<a href='#' onclick='javascript:DSP.update("+rowData.id+");'>"+value+"</a>";
				}
			}, {
				title : '拼音',
				field : 'pyCode',
				width : 110
			} ];
	function update(data){
		$_("id").value = data.id;
		$_("nName").value= data.nName;
		$_("pyCode").value=data.pyCode;
	}
</script>
</head>
<body>
	<div id="dialog_div" class="easyui-window" title="社保配置信息-公司"
		collapsible="false" minimizable="false" maximizable="false"
		icon="icon-save"
		style="width: 310px; height: 600px; left: 200px; top: 10px; padding: 5px; background: #fafafa;">
		<div class="easyui-layout" fit="true">
			<div region="center" border="false"
				style="padding: 10px; background: #fff; border: 1px solid #ccc;">
				<form action="" id="form1" onsubmit="return false;">
					<input type="hidden" name="id" id="id" value="" /> <input
						type="hidden" id="pyCode" name="pyCode" />
					<table width="100%" cellspacing="3" cellpadding="3"
						bordercolor="#DEDEDC" border="0" id="id-form">
						<tr>
							<th class="td_right" valign="middle">民族:</th>
							<td><input type="text" name="nName" id="nName"
								jval="{valid:function(val){if (val.length == 0) return '民族不能为空'; else return '';}}" /> 
							</td>
						</tr>
					</table>
				</form>
			</div>
			<div region="south" border="false"
				style="text-align: right; height: 30px; line-height: 30px;">
				<a id="btnEp" class="easyui-linkbutton" icon="icon-ok"
					href="javascript:DSP.send();"> 确定</a> <a id="btnCancel"
					class="easyui-linkbutton" icon="icon-cancel"
					href="javascript:DSP.close();">取消</a>
			</div>
		</div>
	</div>
	<table id="xDataGrid"></table>
	<script type="text/javascript">
		$(function() {
			DSP.open(false,220,400,"");
			DSP.grid(colModel, false ,null,"民族配置");
		});
	</script>
</body>
</html>
